﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Jackie.Update.BusinessImpl;
using Jackie.Update.IBusiness;

namespace Jackie.Update.WcfService
{
    public class FileUpDownloadService : IFileUpDownload
    {
        private readonly FileUpDownloadImpl serviceImpl;

        public FileUpDownloadService()
        {
            serviceImpl = new FileUpDownloadImpl();
        }

        public byte[] Download(string filePath,int length, long offset)
        {
            return serviceImpl.Download(filePath, length, offset);
        }


        public void Upload(string filePath, byte[] buffer,long offset)
        {
            serviceImpl.Upload(filePath, buffer, offset);
        }
    }
}
